window.compositionend = true;
document.addEventListener('compositionstart', () => {
  window.compositionend = false;
});

document.addEventListener('compositionend', () => {
  window.compositionend = true;
});
